package com.space.product.domain.info.valueobject;

import com.space.components.exception.Assert;
import com.space.components.exception.ExceptionFactory;
import lombok.Getter;

@Getter
public class ProductId {
    private final Integer id;
    public ProductId(Integer id) {
        Assert.notNull(id);
        if (id < 0) {
            throw ExceptionFactory.bizException("Id不能小于0");
        }
        this.id = id;
    }
}
